package mylab.starters.secure.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import mylab.starters.secure.enums.HttpMethod;

/**
 * <p>
 * 匹配规则
 * </p>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Rule {
    /**
     * 路径
     */
    private String path;
    /**
     * 请求方法，默认 {@link HttpMethod#ANY}
     */
    private HttpMethod method = HttpMethod.ANY;
    /**
     * spel表达式
     */
    private String expression;
}
